package cn.zhaoguang.usedcar.common.page;

import lombok.Data;

import java.util.HashMap;
import java.util.Map;

/**
 * @Description 分页请求
 * @Author zhaoguang
 * @Date 2021/3/8 1:26
 */
@Data
public class PageRequest {

    //当前页码
    private int currentPage = 1;

    //每页数量
    private int pageSize = 10;

    //查询参数
    private Map<String, Object> params = new HashMap<>();

    public Object getParamByKey(String key) {
        return getParams().get(key);
    }
}
